package xml;

public class Person {
	private Car car1;
	
	public Person(){}
	
	public void setCar( Car car)
	{
		System.out.println("通过setter方法注入...");
		this.car1 = car;
	}
	
	public Car getCar()
	{
		System.out.println("通过getter方法返回...");
		return this.car1;
	}
}
